package com.xueqiu.movieplaymanagersystem.mapper;

import org.apache.ibatis.annotations.Mapper;
import com.xueqiu.movieplaymanagersystem.entity.User;

/**
 * @author xueqiu
 */
@Mapper
public interface UserMapper {
    /**
     * 根据用户名称查询
     * @param username 用户名称
     * @return 单个查询结果；可能为空
     */
    User selectByName(
            String username
    );

    /**
     * 保持user在域中存活
     * @return 目标user
     */
    User findIndexUserInfo();
}
